﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using CSF.Service.Accounts.Client;
using System.Security.Principal;
using System.Threading;
using CSF.Utility.Mvc;

namespace CSF.WebApp.Admin.Controllers
{
    public class HomeController : SecureController
    {
        [CsfAuthorize]
        public ActionResult Index()
        {
            
            
            //using (ApplicationSvcClient svc = new ApplicationSvcClient())
            //{
            //    var apps = svc.GetEnable();

            //    if (apps.Count > 0)
            //    {
            //        apps[0].ModifyBy = "Admin";
            //        svc.UpdateById(apps[0], apps[0].Id);
            //    }
                
            //    return View(apps);
            //}

            return View();
        }

        [CsfAuthorize]
        public ActionResult About()
        {
            return View();
        }
    }
}
